package com.rabbit.redis.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <h1>Redis 配置</h1>
 *
 * @author zjw
 * @date 2021/6/24 22:03
 */
@Data
@ConfigurationProperties(prefix = "spring.redis")
public class RedisProperties {

    /**
     * Redis相关配置
     */
    private String host;

    private Integer port;

    private String password;

    private Integer poolMaxTotal;

    private Integer poolMaxIdle;

    private Integer poolMinIdle;

    private String mode;

    private Integer database;
}
